<div class="modify">
	<div style="text-align: center;"><?php echo validation_errors(); ?></div>
	<form class="userform" id="modifyForm" action="<?=site_url(array("c"=>"user", "m"=>"modify"))?>" method="post">
		<h2><?=lang('user-info')?></h2>
		<div class="item-spec">
			<label>Avatar:</label>
			<div class="avatar"><img src="<?=empty($userinfo['avatar']) ? image_url()."avatar.png" : ""?>" width="252" height="237"/></div>
		</div>		
		<label>First Name: </label>
		<input name="item_first_name" type="text" class="input-text" value="<?=$userinfo['first_name']?>"/>
		<label>Last Name: </label>
		<input name="item_last_name" type="text" class="input-text" value="<?=$userinfo['last_name']?>"/>
		<label>Email: </label>
		<input name="item_email" type="text" class="input-text" value="<?=$userinfo['email']?>"/>
		<label>City: </label>
		<input name="item_city" type="text" class="input-text" value="<?=$userinfo['city']?>"/>
		<label>Address: </label>
		<textarea name="item_address" cols="31" rows="3"><?=$userinfo['address']?></textarea>
		<label>Home Phone: </label>
		<input name="item_home_phone" type="text" class="input-text" value="<?=$userinfo['home_phone']?>"/>
		<label>Cell Phone: </label>
		<input name="item_cell_phone" type="text" class="input-text" value="<?=$userinfo['cell_phone']?>"/>
		<div class="input-textactions">
			<input type="submit" name="submit" value="<?=lang('submit')?>"/><br/>
		</div>
	</form>
</div>
<script language="JavaScript" type="text/javascript">
// Login form
$(document).ready(function() {
	jQuery("#modifyForm").validate();
});
</script>